<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <style>
        .all{
            width: 280px; height:380px;
            background: #666;
        }
        .all>div{
           width:240px;
           margin-left:20px;
           height:200px;
           background: #fff;
           overflow: hidden;
        }
        .all>div>img{
            width:240px; height:200px;
            transition: all 1s linear;
        }
        .all>div:hover img{
            transform: scale(1.5);
            /* x y 同时放大2陪 */
        }
     
    </style>
</head>
<body>
    <div class="all">
        <div>
            <img src="../day3/images/laowang.png" alt="">
        </div>
       
    </div>
</body>
</html>